package felix.things.router.mqtt.credentials;

import lombok.Data;
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

/**
 * @author Felix
 * @date 2019/7/27
 */
@Data
@Component
@ConditionalOnProperty(prefix = "mqttrouter.config.credentials", value = "type", havingValue = "cert.JKS")
public class CertJKSClientCredentials implements MqttClientCredentials {
    @Override
    public void configure(MqttConnectOptions clientOptions) {
        throw new RuntimeException("JKS client credentials are not supported yet!");
    }
}
